//
//  MovieTableViewCell.m
//  UI14_豆瓣电影更新版
//
//  Created by dllo on 16/1/3.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "MovieTableViewCell.h"

@implementation MovieTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
- (void)dealloc {
    [_imge release];
    [_img release];
    [_nameLabel release];
    [super dealloc];
}
- (void)creatCell {
    self.img = [[UIImageView alloc] init];
    [self.contentView addSubview:_img];
    [_img release];
    
    self.nameLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_nameLabel];
    [_nameLabel release];
    self.imge = [[UIImageView alloc] init];
    [self.contentView addSubview:_imge];
    [_imge release];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _imge.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 20, 180);
    _imge.image = [UIImage imageNamed:@"bg_eventlistcell@2x.png"];
    _img.frame = CGRectMake(20, 5, 120, 170);
    [_imge addSubview:_img];
    
    _nameLabel.frame = CGRectMake(150, 20, self.contentView.frame.size.width - 150, 40);
    [_imge addSubview:_nameLabel];
//    _nameLabel.backgroundColor = [UIColor redColor];
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
